package com.ynny.librarysystemmanager.entity;

public enum RoleIdentity {

    // 结果与描述  1,学生

    ROLE_STUDENT(1,"学生"),
    ROLE_TEACHER(2,"老师"),
    ROLE_ADMIN(3,"管理员"),
    ROLE_USER(4,"游客");

    private Integer roleId;
    private String identity;

    RoleIdentity(Integer roleId, String identity) {
        this.roleId = roleId;
        this.identity = identity;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }
}
